<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import="com.app.service.vo.RoleVo" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'main-role.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  <form action="<%=request.getContextPath() %>/rule/editrule.form" method="post">
  <% RoleVo vo = (RoleVo)request.getAttribute("rulevo"); %>
    <table width="95%" >
    	<tr>
    		<td>角色名：</td>
    		<td><input type="text" name="name" value="<%=vo.getName()%>"/></td>
    	</tr>
    	<tr>
    		<td>状态</td>
    		<td><input type="text" name="sign" value="<%=vo.getSign()%>"/></td>
    	</tr>
    	<tr>
    		<td>角色描述</td>
    		<td>
    			<textarea rows="" cols="" name="rolesDescription">
    				<%=vo.getRolesDescription() %>
    			</textarea>
    		</td>
    	</tr>
    	</table>
    	<p>
    	<input type="hidden" name="id" value="<%=vo.getId() %>"	/>
    		<input type="submit"/> <a href="<%=request.getContextPath()%>/rule/deleterule.form?ruleid=<%=vo.getId() %>">删除角色</a>
    		<a href="<%=request.getContextPath() %>/rule/manageRule.form" >显示所有角色信息</a>
    	</p>
    	</form>
  </body>
</html>
